package com.example.spzx.Mapper;

import com.example.spzx.model.entity.product.ProductSpec;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductSpecMapper {
    Page<ProductSpec> getlist();

    void add(ProductSpec productSpec);

    void updatebyid(ProductSpec productSpec);
@Delete("delete from product_spec where id=#{id}")
    void delete(Integer id);
@Select("select * from product_spec")
    List<ProductSpec> getall();
}
